<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "gky_we_article_answer".
 *
 * @property integer $id
 * @property string $content
 * @property string $fan_open_id
 * @property string $fan_name
 * @property string $answer_time
 * @property integer $articel_id
 * @property integer $praise_count
 */
class GkyWeArticleAnswer extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'gky_we_article_answer';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [[ 'content', 'fan_open_id', 'fan_name', 'answer_time', 'articel_id'], 'required'],
            [[ 'articel_id', 'praise_count'], 'integer'],
            [['answer_time'], 'safe'],
            [['content'], 'string', 'max' => 255],
            [['fan_open_id'], 'string', 'max' => 256],
            [['fan_name'], 'string', 'max' => 128],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'content' => 'Content',
            'fan_open_id' => 'Fan Open ID',
            'fan_name' => 'Fan Name',
            'answer_time' => 'Answer Time',
            'articel_id' => 'Articel ID',
            'praise_count' => 'Praise Count',
        ];
    }
}
